<h1>Admins Manage Users</h1>	
<div class="center">
	<div class="error">
 		<?php
			$errors = $mvc->getObject(UsersService::ERROR);
			if (isset($errors)){
				foreach ($errors as $key => $value){
					echo '<p>' . $value . '</p>';
				}
			}
	 	?>
	</div>
	<form enctype="multipart/form-data" action="edit-school.html" method="post">
		<dl>
			<dt>ID:</dt>
	 		<dd>
	 		<input type="hidden" name="id" value="<?php $message = $mvc->getObject(SchoolService::ID);echo isset($message) ? $message : 'id';?>"/>
	 		<?php $message = $mvc->getObject(SchoolService::ID);echo isset($message) ? $message : 'id';?>
	 		</dd>
			<dt>School Name:</dt>
			<dd><input type="text" name="caption" id="caption" size="35" value="<?php $message = $mvc->getObject(SchoolService::CAPTION);echo isset($message) ? $message : null;?>"/></dd>
			<dt>Description:</dt>
			<dd><textarea rows="10" cols="28"  name="description" id="description"><?php $message = $mvc->getObject(SchoolService::DESCRIPTION);echo isset($message) ? $message : null;?></textarea></dd>
			<dt>Avatar(80x80) :</dt>
			<dd>
			<img alt="none avatar" src="<?php $message = $mvc->getObject(SchoolService::AVATAR);echo isset($message) ? $message : null;?>">
			<input type="file" name="file" size="30" ></input>
			</dd>
			<dd>
			<input type="hidden" name="alias" id="alias" value="<?php $message = $mvc->getObject(SchoolService::ALIAS);echo isset($message) ? $message : null;?>"/>
			</dd>
		</dl>
		<input type="submit" name="submit" value="Submit Changes"/>
	</form>	
</div>
